* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #353b48;
}

.container {
    display: flex;
    flex-direction: column;
}

.container a {
    /* 这个属性是属于绝对定位 */
    position: relative;
    width: 200px;
    height: 60px;
    line-height: 60px;
    margin: 50px;
    text-align: center;
    /* 取消文字的下划线 */
    text-decoration: none;
    /* 设置边框宽度，可见性，颜色 */
    border: 5px solid #7f8;
    filter: hue-rotate(calc(var(--i) * 90deg));
}
/* 伪元素选择器，在内容之前插入内容 */
.container a::before,
.container a::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 5px;
    background-color: #353b48;
    transform: skew(50deg);
    transition: all 0.5s;
}

.container a::before {
    top: -5px;
    left: 10%;
}
 .container a::after {
    bottom: -5px;
    right: 10%;
}

.container a:hover::before {
    left: 80%;
}

.container a:hover::after {
    right: 80%;
}